<?php
/**
 * Clase Base Bean para BaseArFacturaBN
 *
 * @package    Sedapal
 * @subpackage BaseArFacturaBN
 * @author     hans
 * @version    SVN:: BaseArFacturaBN.class.php,v 1.1 2012-05-04 01:15:20 Hans.parra Exp $
 */
abstract class BaseArFacturaBN
{
  protected $FacId;
  protected $Tipo;
  protected $Num;
  protected $ClienteId;
  protected $ClienteNombre;
  protected $Contacto;
  protected $BillToNombre;
  protected $BillToDireccion1;
  protected $BillToDireccion2;
  protected $BillToCiudad;
  protected $BillToEstado;
  protected $BillToPais;
  protected $BillToCodPostal;
  protected $BillToSucursal;
  protected $PoNum;
  protected $DocReferNum;
  protected $VendedorId;
  protected $POS;
  protected $Moneda;
  protected $Fecha;
  protected $FechaVcto;
  protected $Terms;
  protected $TermsDias;
  protected $Flete;
  protected $TotalBruto;
  protected $TotalImpuesto;
  protected $TotalDcto;
  protected $Neto;
  protected $Obs;
  protected $Status;
  protected $CreaUsr;
  protected $CreaFecha;
  protected $ModifUsr;
  protected $ModifFecha;
  protected $Mensaje;
  protected $Error;

  public function getFacId(){
    return $this->FacId;
  }
  public function setFacId($v1){
    $this->FacId = $v1; 
  }

  public function getTipo(){
    return $this->Tipo;
  }
  public function setTipo($v1){
    $this->Tipo = $v1; 
  }

  public function getNum(){
    return $this->Num;
  }
  public function setNum($v1){
    $this->Num = $v1; 
  }

  public function getClienteId(){
    return $this->ClienteId;
  }
  public function setClienteId($v1){
    $this->ClienteId = $v1; 
  }

  public function getClienteNombre(){
    return $this->ClienteNombre;
  }
  public function setClienteNombre($v1){
    $this->ClienteNombre = $v1; 
  }

  public function getContacto(){
    return $this->Contacto;
  }
  public function setContacto($v1){
    $this->Contacto = $v1; 
  }

  public function getBillToNombre(){
    return $this->BillToNombre;
  }
  public function setBillToNombre($v1){
    $this->BillToNombre = $v1; 
  }

  public function getBillToDireccion1(){
    return $this->BillToDireccion1;
  }
  public function setBillToDireccion1($v1){
    $this->BillToDireccion1 = $v1; 
  }

  public function getBillToDireccion2(){
    return $this->BillToDireccion2;
  }
  public function setBillToDireccion2($v1){
    $this->BillToDireccion2 = $v1; 
  }

  public function getBillToCiudad(){
    return $this->BillToCiudad;
  }
  public function setBillToCiudad($v1){
    $this->BillToCiudad = $v1; 
  }

  public function getBillToEstado(){
    return $this->BillToEstado;
  }
  public function setBillToEstado($v1){
    $this->BillToEstado = $v1; 
  }

  public function getBillToPais(){
    return $this->BillToPais;
  }
  public function setBillToPais($v1){
    $this->BillToPais = $v1; 
  }

  public function getBillToCodPostal(){
    return $this->BillToCodPostal;
  }
  public function setBillToCodPostal($v1){
    $this->BillToCodPostal = $v1; 
  }

  public function getBillToSucursal(){
    return $this->BillToSucursal;
  }
  public function setBillToSucursal($v1){
    $this->BillToSucursal = $v1; 
  }

  public function getPoNum(){
    return $this->PoNum;
  }
  public function setPoNum($v1){
    $this->PoNum = $v1; 
  }

  public function getDocReferNum(){
    return $this->DocReferNum;
  }
  public function setDocReferNum($v1){
    $this->DocReferNum = $v1; 
  }

  public function getVendedorId(){
    return $this->VendedorId;
  }
  public function setVendedorId($v1){
    $this->VendedorId = $v1; 
  }

  public function getPOS(){
    return $this->POS;
  }
  public function setPOS($v1){
    $this->POS = $v1; 
  }

  public function getMoneda(){
    return $this->Moneda;
  }
  public function setMoneda($v1){
    $this->Moneda = $v1; 
  }

  public function getFecha(){
    return $this->Fecha;
  }
  public function setFecha($v1){
    $this->Fecha = $v1; 
  }

  public function getFechaVcto(){
    return $this->FechaVcto;
  }
  public function setFechaVcto($v1){
    $this->FechaVcto = $v1; 
  }

  public function getTerms(){
    return $this->Terms;
  }
  public function setTerms($v1){
    $this->Terms = $v1; 
  }

  public function getTermsDias(){
    return $this->TermsDias;
  }
  public function setTermsDias($v1){
    $this->TermsDias = $v1; 
  }

  public function getFlete(){
    return $this->Flete;
  }
  public function setFlete($v1){
    $this->Flete = $v1; 
  }

  public function getTotalBruto(){
    return $this->TotalBruto;
  }
  public function setTotalBruto($v1){
    $this->TotalBruto = $v1; 
  }

  public function getTotalImpuesto(){
    return $this->TotalImpuesto;
  }
  public function setTotalImpuesto($v1){
    $this->TotalImpuesto = $v1; 
  }

  public function getTotalDcto(){
    return $this->TotalDcto;
  }
  public function setTotalDcto($v1){
    $this->TotalDcto = $v1; 
  }

  public function getNeto(){
    return $this->Neto;
  }
  public function setNeto($v1){
    $this->Neto = $v1; 
  }

  public function getObs(){
    return $this->Obs;
  }
  public function setObs($v1){
    $this->Obs = $v1; 
  }

  public function getStatus(){
    return $this->Status;
  }
  public function setStatus($v1){
    $this->Status = $v1; 
  }

  public function getCreaUsr(){
    return $this->CreaUsr;
  }
  public function setCreaUsr($v1){
    $this->CreaUsr = $v1; 
  }

  public function getCreaFecha(){
    return $this->CreaFecha;
  }
  public function setCreaFecha($v1){
    $this->CreaFecha = $v1; 
  }

  public function getModifUsr(){
    return $this->ModifUsr;
  }
  public function setModifUsr($v1){
    $this->ModifUsr = $v1; 
  }

  public function getModifFecha(){
    return $this->ModifFecha;
  }
  public function setModifFecha($v1){
    $this->ModifFecha = $v1; 
  }

  public function getMensaje(){
    return $this->Mensaje;
  }
  public function setMensaje($vl){
    $this->Mensaje = $vl;
  }

  public function getError(){
    return $this->Error;
  }
  public function setError($vl){
    $this->Error = $vl;
  }

  /* Recupera un objeto Ar_facturaBN desde un RecordSet */
  public static function retrieveByRs( $o_Ar_facturaRs )
  {
    $o_ArFacturaBN = new ArFacturaBN();
    $o_ArFacturaBN->setFacId( $o_Ar_facturaRs['facId'] );
    $o_ArFacturaBN->setTipo( $o_Ar_facturaRs['tipo'] );
    $o_ArFacturaBN->setNum( $o_Ar_facturaRs['Num'] );
    $o_ArFacturaBN->setClienteId( $o_Ar_facturaRs['clienteId'] );
    $o_ArFacturaBN->setClienteNombre( $o_Ar_facturaRs['clienteNombre'] );
    $o_ArFacturaBN->setContacto( $o_Ar_facturaRs['contacto'] );
    $o_ArFacturaBN->setBillToNombre( $o_Ar_facturaRs['billToNombre'] );
    $o_ArFacturaBN->setBillToDireccion1( $o_Ar_facturaRs['billToDireccion1'] );
    $o_ArFacturaBN->setBillToDireccion2( $o_Ar_facturaRs['billToDireccion2'] );
    $o_ArFacturaBN->setBillToCiudad( $o_Ar_facturaRs['billToCiudad'] );
    $o_ArFacturaBN->setBillToEstado( $o_Ar_facturaRs['billToEstado'] );
    $o_ArFacturaBN->setBillToPais( $o_Ar_facturaRs['billToPais'] );
    $o_ArFacturaBN->setBillToCodPostal( $o_Ar_facturaRs['billToCodPostal'] );
    $o_ArFacturaBN->setBillToSucursal( $o_Ar_facturaRs['billToSucursal'] );
    $o_ArFacturaBN->setPoNum( $o_Ar_facturaRs['poNum'] );
    $o_ArFacturaBN->setDocReferNum( $o_Ar_facturaRs['docReferNum'] );
    $o_ArFacturaBN->setVendedorId( $o_Ar_facturaRs['vendedorId'] );
    $o_ArFacturaBN->setPOS( $o_Ar_facturaRs['POS'] );
    $o_ArFacturaBN->setMoneda( $o_Ar_facturaRs['moneda'] );
    $o_ArFacturaBN->setFecha( $o_Ar_facturaRs['fecha'] );
    $o_ArFacturaBN->setFechaVcto( $o_Ar_facturaRs['fechaVcto'] );
    $o_ArFacturaBN->setTerms( $o_Ar_facturaRs['terms'] );
    $o_ArFacturaBN->setTermsDias( $o_Ar_facturaRs['termsDias'] );
    $o_ArFacturaBN->setFlete( $o_Ar_facturaRs['flete'] );
    $o_ArFacturaBN->setTotalBruto( $o_Ar_facturaRs['totalBruto'] );
    $o_ArFacturaBN->setTotalImpuesto( $o_Ar_facturaRs['totalImpuesto'] );
    $o_ArFacturaBN->setTotalDcto( $o_Ar_facturaRs['totalDcto'] );
    $o_ArFacturaBN->setNeto( $o_Ar_facturaRs['neto'] );
    $o_ArFacturaBN->setObs( $o_Ar_facturaRs['obs'] );
    $o_ArFacturaBN->setStatus( $o_Ar_facturaRs['status'] );
    $o_ArFacturaBN->setCreaUsr( $o_Ar_facturaRs['creaUsr'] );
    $o_ArFacturaBN->setCreaFecha( $o_Ar_facturaRs['creaFecha'] );
    $o_ArFacturaBN->setModifUsr( $o_Ar_facturaRs['modifUsr'] );
    $o_ArFacturaBN->setModifFecha( $o_Ar_facturaRs['modifFecha'] );
    return $o_ArFacturaBN;
  }
}